<?php
/**
 * Created by PhpStorm.
 * User: wuchao
 * Date: 2020/4/3
 * Time: 14:24
 */

use think\facade\Route;
//根据运营商获取配置
Route::post('v1/GetConfig', 'v1.home.index/GetConfig');
//根据运营商获取GetAppid
Route::post('v1/GetAppid', 'v1.Wxlogin/GetAppid');
//老板查看员工列表
Route::post('v1/EmployeeList', 'v1.home.index/EmployeeList');
//老板审核员工
Route::post('v1/IsAdopt', 'v1.home.index/IsAdopt');
//老板解绑员工
Route::post('v1/RelieveEmployee', 'v1.home.index/RelieveEmployee');
//微信授权链接
Route::post('v1/wxUrl', 'v1.Wxlogin/wxUrl');
//微信授权登录
Route::post('v1/Vxlogin', 'v1.Wxlogin/login');
//微信授权登录
Route::post('v1/WxSign', 'v1.WxSdk/get_sign');
//获取首页数据
Route::post('v1/Index', 'v1.home.index/index');
//搜索商品
Route::post('v1/Search', 'v1.home.index/search');
//商品详情
Route::post('v1/Detail', 'v1.home.index/detail');
//用户登录
Route::post('v1/login', 'v1.login/login');
//用户注册
Route::post('v1/register', 'v1.login/register');
//获取验证码
Route::post('v1/SendMsg', 'v1.login/SendMsg');
//修改密码
Route::post('v1/ChangePwd', 'v1.login/ChangePwd');
//注销登陆
Route::post('v1/LoginOut', 'v1.login/LoginOut');
//获取所有公司列表
Route::post('v1/CompanyList', 'v1.login/CompanyList');
//老板审核员工
Route::post('v1/IsAdopt', 'v1.home.index/IsAdopt');
//上传图片前端
Route::post('v1/UploadImage', 'v1.home.index/UploadImage');
/**
 * 购物车相关
 */
////加入购物车
//Route::post('v1/AddCart', 'v1.home.cart/AddCart');
////删除购物车
//Route::post('v1/DelCart', 'v1.home.cart/DelCart');
//查看购物车
Route::post('v1/CartList', 'v1.home.cart/CartList');
//编辑购物车
Route::post('v1/editCart', 'v1.home.cart/editCart');
//购物车商品数量（不管份数）
Route::post('v1/CartNum', 'v1.home.cart/CartNum');
////购物车加减数量
//Route::post('v1/NumCart', 'v1.home.cart/NumCart');
/**
 * 分类相关
 */
//获取一级分类
Route::post('v1/OneCategory', 'v1.home.CateGory/OneCategory');
//获取二级分类
Route::post('v1/TwoCategory', 'v1.home.CateGory/TwoCategory');
//获取三级分类和商品
Route::post('v1/ThreeCategory', 'v1.home.CateGory/ThreeCategory');
/**
 * 用户地址相关
 */
//用户地址列表
Route::post('v1/AddressList', 'v1.home.Address/AddressList');
//用户地址添加
Route::post('v1/AddAddress', 'v1.home.Address/AddAddress');
//用户地址修改
Route::post('v1/EditAddress', 'v1.home.Address/EditAddress');
//用户地址删除
Route::post('v1/DelAddress', 'v1.home.Address/DelAddress');
/**
 *订单相关
 */
//生成订单
Route::post('v1/NewOrder', 'v1.home.Order/NewOrder');
//生成支付信息
Route::post('v1/JsApi', 'v1.home.Pay/JsApi');
//支付回调
Route::post('v1/Notify', 'v1.home.Pay/Notify');
//取消订单
Route::post('v1/refund', 'v1.home.Pay/refund');
//订单列表
Route::post('v1/OrderList', 'v1.home.Order/OrderList');
//订单数量
Route::post('v1/OrderNum', 'v1.home.Order/OrderNum');
//退款理由
Route::post('v1/RefundOptions', 'v1.home.Pay/RefundOptions');
//售后申请退款
Route::post('v1/ApplyRefund', 'v1.home.Order/ApplyRefund');
//用户订单评论
Route::post('v1/GoodsReply', 'v1.home.Order/GoodsReply');
//用户收货
Route::post('v1/GoodsReceipt', 'v1.home.Order/GoodsReceipt');
/**
 *用户相关
 */
//员工重新绑定
Route::post('v1/ChoiceCompany', 'v1.user.Index/ChoiceCompany');
//获取用户基本信息
Route::post('v1/UserInfo', 'v1.user.Index/UserInfo');
//用户查看下单统计
Route::post('v1/OrderStatistics', 'v1.user.Index/OrderStatistics');
/**
 *秤管理中心
 */
//获取采购记录
Route::post('v1/purchase_list', 'v1.balance.Balance/purchase_list');
//获取二级代理商
Route::post('v1/admin_list', 'v1.balance.Balance/admin_list');
//通过二级代理商获取分拣中心
Route::post('v1/sort_center_list', 'v1.balance.Balance/sort_center_list');
//获取一级分类
Route::post('v1/category_one', 'v1.balance.Balance/category_one');
//通过一级ID获取二级分类
Route::post('v1/category_children', 'v1.balance.Balance/category_children');
// 通过三级ID获取商品
Route::post('v1/category_product', 'v1.balance.Balance/category_product');
//获取所有分类
Route::post('v1/category_all', 'v1.balance.Balance/category_all');
//模糊查询主订单
Route::post('v1/findOrder', 'v1.balance.Balance/findOrder');
//入库少量选择理由
Route::post('v1/WareOptions', 'v1.balance.Balance/WareOptions');
//根据商品获取订单
Route::post('v1/get_order', 'v1.balance.Balance/get_order');
//未秤重订单
Route::post('v1/order_out', 'v1.balance.Balance/order_out');
//秤重入库
Route::post('v1/Goods_in_stock', 'v1.balance.Balance/Goods_in_stock');
//秤重出库
Route::post('v1/Goods_out_stock', 'v1.balance.Balance/Goods_out_stock');
//获取需要出库的商品
Route::post('v1/getOut', 'v1.balance.Balance/getOut');
//获取需要等待出库的订单信息
Route::post('v1/getWaitOrder', 'v1.balance.Balance/getWaitOrder');
//商品减少库存(报损盘点)
Route::post('v1/Goods_reduce', 'v1.balance.Balance/Goods_reduce');
//获取三级分类以及分类下的所有商品 单位 库存
Route::post('v1/getProductList', 'v1.balance.Buyer/getProductList');
//获取商品日志
Route::post('v1/goodsLog', 'v1.balance.Buyer/goodsLog');
//模糊获取商品名字、单位
Route::post('v1/getAttrList', 'v1.balance.Buyer/getAttrList');
//生成采购记录
Route::post('v1/warehouse', 'v1.balance.Buyer/warehouse');
//库管员复核入库
Route::post('v1/RecheckWare', 'v1.balance.Buyer/RecheckWare');
//获取下单记录
Route::post('v1/getStatisticsList', 'v1.balance.Buyer/getStatisticsList');
//秤更新
Route::post('v1/UpdateBalance', 'v1.balance.Balance/UpdateBalance');

/**
 *配送员管理中心
 */
//司机获取所配送的分拣中心以及订单数量
Route::post('v1/DeliveryBalance', 'v1.balance.DeliveryContro/DeliveryBalance');
//司机获取司机列表
Route::post('v1/DriverList', 'v1.balance.DeliveryContro/DriverList');
//司机委派订单
Route::post('v1/DriverEntrust', 'v1.balance.DeliveryContro/DriverEntrust');
//获取所有已出库或者发货的订单
Route::post('v1/get_out_order', 'v1.balance.DeliveryContro/get_out_order');
//获取配送地址表
Route::post('v1/Distribution_route', 'v1.balance.DeliveryContro/Distribution_route');
//调整配送路线顺序
Route::post('v1/Adjustment_route', 'v1.balance.DeliveryContro/Adjustment_route');
//订单发货
Route::post('v1/order_send', 'v1.balance.DeliveryContro/order_send');
//订单送达
Route::post('v1/order_arrive', 'v1.balance.DeliveryContro/order_arrive');
//获取确认已送达的订单
Route::post('v1/all_deliver', 'v1.balance.DeliveryContro/all_deliver');
